package com.baitengsoft.patentapimonitor.api.service;

import com.baitengsoft.patentapimonitor.api.entity.CfgDictionaryEntity;
import com.baitengsoft.patentapimonitor.api.model.CfgDictionaryInfo;

import java.util.List;
import java.util.Map;

/**
 * Created by Admin on 2018/1/8.
 */
public interface CfgDictionaryService {

    List<CfgDictionaryEntity> searchDictionaryByCode(String code);

    /**
     * 根据code只获取Name和Value，【下拉框】
     */
    List<CfgDictionaryInfo> getNameAndValueByCode(String code);

    /**
     * 根据名字和编码查询value
     */
    String getValueByCodeAndName(String code,String name);

    /**
     * 根据value和编码查询name
     */
    String getNameByCodeAndValue(String code,String value);

    /**
     * 获取专利授权map
     */
    Map<String,String> getPatTypeMap();

    /**
     * 获取法律状态map
     */
    Map<String,String> getLowStatus();

    Map <String,String> getInvoidLowStatus();

    Map <String,String> getApplyPersonType();
}
